   var a = 0; //定义显示的logo个数
   var logo_width = 150*a; //定义显示logo的宽度数值
   var get_ul = document.getElementById('logo_list_id'); //获取logo内容容器ID
   for (var i = 0; i < a; i++) {//循环输出
      var creat_li = document.createElement("li");//创建li
      var creat_li_content;
      
      creat_li.innerHTML = creat_li_content;//为创建的li添加内容
      creat_li.setAttribute("class","logo_list_li");//为创建的li添加样式名
      get_ul.appendChild(creat_li);//把创建好的元素放到页面上指定位置
   }
   get_ul.style.width = logo_width +'px'; //定义显示logo的宽度
   
   window.onload = function(){
       scrollPic();
      }
   function scrollPic() {
      var scrollPic = new ScrollPic();
      scrollPic.scrollContId   = "logo_list_id"; //内容容器ID
      scrollPic.arrLeftId      = "show_logo_pre";//左箭头ID
      scrollPic.arrRightId     = "show_logo_nex"; //右箭头ID

      scrollPic.frameWidth     = logo_width;//显示框宽度
      scrollPic.pageWidth      = 150; //翻页宽度

      scrollPic.speed          = 15; //移动速度(单位毫秒，越小越快)
      scrollPic.space          = 15; //每次移动像素(单位px，越大越快)
      scrollPic.autoPlay       = false; //自动播放
      scrollPic.autoPlayTime   = 5; //自动播放间隔时间(秒)

      scrollPic.initialize(); //初始化
   }
   function SettledIndexCreatCarousel(){ //定义函数
     var b = 3; //定义轮播图片数量
     var get_carousel_list = document.getElementById('carousel_list_id');//获取图片内容ID
     var get_carousel_control = document.getElementById('carousel_control_id');//获取控制菜单ID
     var carousel_width = 100*b;//为图片内容定义宽度
     var carousel_li_width = 100/b;//为单个图片定义宽度
     get_carousel_list.style.width = carousel_width+"%";//为图片内容赋值宽度

     for (var i = 0; i < b; i++) {
        var creat_carousel_li = document.createElement("li");//创建li
        var creat_carousel_div = document.createElement("div");//创建div
        var creat_carousel_div_content;//创建的div内容
        var creat_carousel_li_content;//创建的li内容
        /*
        *你需要改变你的路径才可以让图片轮播起来
        *PS:（跟着龙哥跑就是了）
        */
        switch (i){
            case 0:
            creat_carousel_li_content ="<img class='carousel_img' src='../images/settled/settled_detail_pic_1.png'>";
            creat_carousel_div_content = "创业成都，看看大佬们的选择——赛伯乐、成以孵化器、侠客岛、融创+、成创空间、五大孵化器集体入住街区";
            break;
            default:
            creat_carousel_li_content ="<img class='carousel_img' src='../images/settled/settled_detail_pic_1.png'>";
            creat_carousel_div_content = "创业成都，看看大佬们的选择——赛伯乐、成以孵化器、侠客岛、融创+、成创空间、五大孵化器集体入住街区";
        }

        creat_carousel_li.innerHTML = creat_carousel_li_content;//为创建的li定义内容
        creat_carousel_div.innerHTML = creat_carousel_div_content;//为创建的div定义内容
        creat_carousel_li.setAttribute("class","carousel_list_li");//为创建的li增加样式名
        creat_carousel_div.setAttribute("class","carousel_list_text");//为创建的div增加样式名
        creat_carousel_li.style.width=carousel_li_width+"%";//为创建的li赋值宽度
        creat_carousel_div.style.width="100%";//为创建的div赋值宽度
        get_carousel_list.appendChild(creat_carousel_li);//把创建的li定义到页面指定位置
        creat_carousel_li.appendChild(creat_carousel_div);//把创建的div定义到页面指定位置
        

         //控制台的创建
        var creat_carousel_controll_li = document.createElement("li");
        creat_carousel_controll_li.innerHTML = "";
        creat_carousel_controll_li.setAttribute("class","control_li");
        get_carousel_control.appendChild(creat_carousel_controll_li);
     }
   }


function SettledIndexCarouselBign(){
    var _in;
    var $carousel_list = $('#carousel_custom .carousel_list_div .carousel_list .carousel_list_li'),
        $carousel_control = $('#carousel_custom .carousel_control_div .carousel_control .control_li'),
        $carousel_pre = $("#carousel_pre_id"),
        $carousel_nex = $("#carousel_nex_id");
     _in = $carousel_list.index();//为_in赋初值
     $carousel_control.eq(0).addClass('control_li_active');//为控制菜单第一个设置默认样式
     var get_carousel_list = document.getElementById('carousel_list_id');//获取内容ID
     var k = get_carousel_list.getElementsByTagName("li").length;//获取li集合的长度
     $carousel_control.click(function(event) {
        var t = $(this).index();
            $carousel_list.eq(t).fadeIn('slow').siblings().fadeOut('slow');
            $carousel_control.eq(t).addClass('control_li_active').siblings().removeClass('control_li_active');
     });
     function run(){
            if(_in>=k-1){
                _in = -1;
            }
            _in++;
            $carousel_list.eq(_in).fadeIn('slow').siblings().fadeOut('slow');
            $carousel_control.eq(_in).addClass('control_li_active').siblings().removeClass('control_li_active');
     }
     function AllRun(){Play = setInterval(run,5000);}
     AllRun();
     function StopRun(){clearInterval(Play);}
     $carousel_pre.hover(function() {
         StopRun();
     }, function() {
         AllRun();
     });
     $carousel_nex.hover(function() {
         StopRun();
     }, function() {
         AllRun();
     });
     $carousel_control.hover(function() {
         StopRun();
     }, function() {
         AllRun();
     });
     $carousel_pre.click(function(event) {
            if(_in<=-1){
                _in = 2;
            }
            _in--;
            $carousel_list.eq(_in).fadeIn('slow').siblings().fadeOut('slow');
            $carousel_control.eq(_in).addClass('control_li_active').siblings().removeClass('control_li_active');
    });
    $carousel_nex.click(function(event) {
            if(_in>=k-1){
                _in = -1;
            }
            _in++;
            $carousel_list.eq(_in).fadeIn('slow').siblings().fadeOut('slow');
            $carousel_control.eq(_in).addClass('control_li_active').siblings().removeClass('control_li_active');
   });
}